package castleContent;

public class User {

	private String name;
	private String age;
	private String password;
	private String race;
	private String city;
	public Castle castle;
	
	public User(String name, String password, int gold, int goldProduction, int foodProduction, int food, int armyCapacity,
			int archers, int barbarians, int wizards, int barbarianAd, int barbarianHp, int archerAd, int archerHp, int wizzardAd, int wizzardHp ) {
		setName(name);
		setPassword(password);
		this.castle = new Castle(gold, goldProduction, foodProduction, food, armyCapacity, archers, barbarians, wizards,
		 barbarianAd, barbarianHp, archerAd, archerHp, wizzardAd,  wizzardHp);
		
	}
	public User(String name, String age, String password, String race, String city){
		setName(name);
		setAge(age);
		setPassword(password);
		setRace(race);
		setCity(city);
		this.castle = new Castle();
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		if (name != null && name != "") {
			this.name = name;
		}
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		if (password != null && password != "") {
			this.password = password;
		}
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		if (age != null && age != "") {
			this.age = age;
		}
	}

	public String getRace() {
		return race;
	}

	public void setRace(String race) {
		this.race = race;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

}
